//
//  FeatureScrollCell.m
//  iBook
//
//  Created by wangjing on 14/12/17.
//  Copyright (c) 2014年 wikiflyer. All rights reserved.
//

#import "FeatureScrollCell.h"

@implementation FeatureScrollCell




-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    
    _imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0,0, frame.size.width, frame.size.height-40)];
    [self addSubview:self.imageView];
    
    _name = [[UILabel alloc]initWithFrame:CGRectMake(0, frame.origin.y+frame.size.height-40, frame.size.width, 20)];
    _name.textColor = [UIColor redColor];
    _name.font = [UIFont fontWithName:@"HelveticaNeue" size:12];
    [self addSubview:self.name];

    _author = [[UILabel alloc]initWithFrame:CGRectMake(0, frame.origin.y+frame.size.height-20, frame.size.width,20)];
    _author.textColor = [UIColor blackColor];
    _author.font = [UIFont fontWithName:@"HelveticaNeue" size:10];
    _author.text = @"作者";
    [self addSubview:_author];
    
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
